<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<section class="section-right">
		<!--deer-tit-->
		<div class="deer-tit">
			<h3>管控</h3>
			<h4>油罐</h4>
			<h5>添加油罐</h5>
		</div>
		<!--/deer-tit-->
		<!--deer-content-->
		<div class="deer-content">
			<ul class="oilcan-all">
				<li><span>已用:100升</span><dl>剩余：601.00</dl><p>50号油罐<a href="管控-油罐-油罐管理.html">【管理】</a></p></li>
				<li><span>已用:100升</span><dl>剩余：601.00</dl><p>50号油罐<a href="管控-油罐-油罐管理.html">【管理】</a></p></li>
				<li><span>已用:100升</span><dl>剩余：601.00</dl><p>50号油罐<a href="管控-油罐-油罐管理.html">【管理】</a></p></li>
				<li><span>已用:100升</span><dl>剩余：601.00</dl><p>50号油罐<a href="管控-油罐-油罐管理.html">【管理】</a></p></li>
				<li><span>已用:100升</span><dl>剩余：601.00</dl><p>50号油罐<a href="管控-油罐-油罐管理.html">【管理】</a></p></li>
			</ul>
			
			
		</div>
		<!--deer-content-->
	</section>
	
	<!--js-->
	<aside>
		
		<script type="text/javascript" src="../layui/layui.js" ></script>
		<script type="text/javascript">
			
			layui.use(['layer','jquery','element'],function(){
				var	layer=layui.layer;
				var $=layui.jquery;
				var element=layui.element;
				
				//点击显示隐藏
				$('.ware-staff>dl').bind('click',function(e){
					e.stopPropagation()//取消冒泡
					var	 num=$(this).index('.ware-staff>dl');	
					if($('.ware-staff>dl input').val()==0){
						$('.ware-staff>dt').eq(num).show()
						$('.ware-staff>dl').eq(num).addClass('ware-btnbg')
						$('.mask').show()
						$('.ware-staff>dl input').val(1)
					}else{
						$('.ware-staff>dt').hide()
						$('.ware-staff>dl input').val(0)
						$('.ware-staff>dl').removeClass('ware-btnbg')
						$('.mask').hide()
					}
				})
				//取消冒泡
				$('.ware-staff>dt').bind('click',function(e){
					e.stopPropagation()
				})
				//全局点击隐藏
				$(document).bind('click',function(){
					$('.ware-staff>dt').hide()
					$('.ware-staff>dl input').val(0)
					$('.mask').hide()
					$('.ware-staff>dl').removeClass('ware-btnbg')
				})
				
				//定义全局是删除框
				window.deletes=function(){
					layer.confirm('是否删除此分类？', {
					  	btn: ['删除','取消'] //按钮
					}, function(){
						//成功后执行的函数
						
					  	layer.msg('分类删除成功', {icon: 1});
					  	$('.ware-staff>dt').hide()
					}, function(){
						//失败后执行的函数
					 	layer.msg('您已经取消了操作',{icon: 0});
					 	$('.ware-staff>dt').hide()
					});
				}
				

        		$('tbody').on('click', '.bind', function () {
					var merchant_id=$(this).data('id');
					var waiter=$('this').data('waiter')
					var open = $(this).data('open');
					console.log('123')
					var host = "https://develop.zhihuiyouzhan.com.cn";
					 $.post('/index.php/merchant/staff/qrcode.html', {'merchant_id': merchant_id}, function (msg) {
		                var url = "http://pan.baidu.com/share/qrcode?w=150&h=150&url=" + host + "/index.php/index/user/save_waiter_openid/token/" + msg + "/waiter_id/" + waiter + '/mid/' + 1;
		                layer.msg("<img id='img1' src='" + url + "' />", {
		                    shade: 0.7,
		                    shadeClose: true,
		                    time: 0,
		                    offset: '300px',
		                    skin: 'demo-class1'
		                })
					})
				})
        		
				
			})
			
		</script>
		
		
		
	</aside>
	<!--/js-->
</body>
</html>